package utils;


import org.apache.commons.codec.digest.DigestUtils;

import java.util.Map;

public class HashUtil {
    public static String genMixedHash(String string) {
        return DigestUtils.md5Hex("john" + string);
    }
    private Object data;
    public <T> T getDataParamAsT(String key) {
        Map dataMap = (Map) data;
        if (dataMap == null) {
            return null;
        }

        Object value = dataMap.get(key);
        if (value == null) {
            return null;
        }

        return (T) value;
    }
}
